﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">
  
  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>
  
  <div class="container-fluid ihg-container has-ihg-sidemenu">
    
    <ol class="ihg-breadcrumb breadcrumb">
      <li class="active">员工管理&nbsp;-&nbsp;员工列表</li>
    </ol>
    
    <div class="ihg-content-layout has-operation">
      
      <div class="ihg-operation-bar no-margin no-bottom-border clearfix">
        <div class="ihg-operation-group pull-right">
        <!-- href in button "add" is changed to '${ctx.host}/principals/add'" -->
          <a href="${ctx.host}/principals/create" class="btn btn-default" data-target="#add" data-toggle="modal">新增员工</a>
          <a href="${ctx.host}/principals/search" class="btn btn-success" data-target="#search" data-toggle="modal">查询员工</a>
        </div>
      </div>
      
      <table class="table table-striped ihg-table tab-pane">
                <thead>
                    <tr>
                        <th>用户名称</th>
                        <th>手机号</th>
                        <th>创建时间</th>
                        <th>医院</th>
                        <th>科室</th>
                        <th>职称</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                <tr>
                    <td>张三</td>
                    <td>13732255442</td>
                    <td>2017-11-03</td>
                    <td>圣彼得堡</td>
                    <td>骨科</td>
                    <td>专家</td>
                    <td class="text-center">
                      <a href="${ctx.host}/principals/1/view">详情</a>&nbsp;&nbsp;
                      <a href="${ctx.host}/principals/1/edit" data-target="#edit" data-toggle="modal">编辑</a>&nbsp;&nbsp;
                      <a href="${ctx.host}/principals/1/delete" data-target="#delete" data-toggle="modal">删除</a>
                    </td>
                </tr>
                
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="7">
                            <div class="pull-left">
                                <jsp:include page="/WEB-INF/include/page.jsp">
                                    <jsp:param name="url" value="${ctx.host}/principals" />
                                    <jsp:param name="queryString" value="${queryString}" />
                                </jsp:include>
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
      
    </div>
  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/principal/principal-list.js" />
  <script type="text/javascript">
    require(['page/principal/principal-list'], function(page) {
      page.init();
    })
  </script>

</body>

</html>
